package pers.hl.module_main.mine

import com.chad.library.adapter.base.entity.MultiItemEntity
import pers.hl.lib_global.model.bean.User

abstract class MineLayoutBean(override val itemType: Int) : MultiItemEntity {

    companion object {
        const val TYPE_HEADER = 1
        const val TYPE_MENU = 2
    }

    abstract fun getData() : Any

    class HeaderLayoutLayoutBean(val user: User): MineLayoutBean(TYPE_HEADER) {
        override fun getData(): Any {
            return user
        }
    }

    class MineMenuLayoutLayoutBean(private val mineMenu: MineMenu): MineLayoutBean(TYPE_MENU) {
        override fun getData(): Any {
            return mineMenu
        }
    }
}